# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zenity
pkgver=4.0.1
pkgrel=0
pkgdesc="Display dialog boxes from the command line and shell scripts"
url="https://wiki.gnome.org/Projects/Zenity"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	help2man
	intltool
	itstool
	libadwaita-dev
	libxml2-utils
	meson
	"
options="!check" # no tests
subpackages="$pkgname-dbg $pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/zenity/${pkgver%.*}/zenity-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
f84e14fd66dbe6bd21d030c1879d8d44250bc8c0661c5ccb6cad7fe8d257e4b01427ce27894cf5a5c27566113587f6b34adc9051826e870e44b836b5c63fb11f  zenity-4.0.1.tar.xz
"
